package com.ddtech.business.course.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ddtech.business.course.entity.CourseChapter;
import com.ddtech.business.course.entity.CourseResource;

import java.util.List;

/**
 * @author bin
 */
public interface CourseResourceService extends IService<CourseResource> {
    /**
     * 保存资源信息
     * @param chapter
     */
    void saveResource(CourseChapter chapter);

    /**
     * 获取资源列表
     * @param chapter
     * @return
     */
    List<CourseResource> getResource(String chapter);

    /**
     * 获取资源列表pc端
     * @param chapter
     * @return
     */
    List<CourseResource> getResourceList(String chapter);

    /**
     * remove
     * @param courseChapter
     */
    void removeResource(CourseChapter courseChapter);

    CourseResource findOne(String id);
}
